package com.course.smart_campus.service;

import com.course.smart_campus.entity.DeliverOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author feng-shu-sheng
* @description 针对表【deliver_order】的数据库操作Service
* @createDate 2023-11-07 19:42:44
*/
public interface DeliverOrderService extends IService<DeliverOrder> {

    List<DeliverOrder> getByClientId(int clientId);

    List<DeliverOrder> getByAcceptId(int accepterId);

    boolean updateStatus(int id,int status);

    boolean accept(int acceptId, int id);

    boolean cancelAccept(int acceptId, int id);

    boolean finish(int id);
}
